package org.linlinjava.litemall.admin.vo.shop;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author wj
 * @date 2021/8/19 14:43
 */
public class BasicCharge {

    private Long id;

    @DecimalMin(value = "0.01",message = "基础收费不能小于0.01")
    @DecimalMax(value = "9999",message = "基础收费不能高于9999")
    private BigDecimal unitPrice;

    @Max(value = 9999,message = "天数不能大于9999")
    private Integer startRentDay;

    private List<LadderCharge> ladderCharge;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public Integer getStartRentDay() {
        return startRentDay;
    }

    public void setStartRentDay(Integer startRentDay) {
        this.startRentDay = startRentDay;
    }

    public List<LadderCharge> getLadderCharge() {
        return ladderCharge;
    }

    public void setLadderCharge(List<LadderCharge> ladderCharge) {
        this.ladderCharge = ladderCharge;
    }
}
